package com.qdu.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author:sanShi
 * @Description:{系统管理员实体类}
 * @date :2020/12/1
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class SysAccount extends BaseEntity{
    private String code;
    private String name;
    private Boolean sex;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthData;
    private String logo;
    private String password;
    private String email;
    private Boolean isLocked;
    private Long loginCount;
    private Date lastLoginTime;
    private String note;

    @TableField(exist = false)
    private String roles;
}
